import request from "@/utils/request"

export function getUserList(userId) {
    return request({
        url: '/auth/permission/userlist?userId=' + userId,
        method: 'get'
    })
}
export function saveUserData(data){
    return request({
        url:'/auth/permission/save',
        method:'post',
        data
    })
}
export function deleteUserData(userid,id){
    return request({
        url:'/auth/permission/delete?userid='+userid+'&id='+id,
        method:'delete'
    })
}
export function initUserData(id){
    return request({
        url:'/auth/permission/init?id='+id,
        method:'post'
    })
}